package com.jarvis.hospital.common;

import java.io.Serializable;

/**
 * Created by jarvis.liu on 9/12/2016.
 */
public class RequestCommonModel implements Serializable {
    private String requestCommand;
    private String palt;
    private String version;
    private String userKeyId;

    @Override
    public String toString() {
        return "RequestCommonModel{" +
                "requestCommand='" + requestCommand + '\'' +
                ", palt='" + palt + '\'' +
                ", version='" + version + '\'' +
                ", userKeyId='" + userKeyId + '\'' +
                '}';
    }

    public String getUserKeyId() {
        return userKeyId;
    }

    public void setUserKeyId(String userKeyId) {
        this.userKeyId = userKeyId;
    }

    public String getPalt() {

        return palt;
    }

    public void setPalt(String palt) {
        this.palt = palt;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public RequestCommonModel(String requestCommand) {
        this.requestCommand = requestCommand;
        setPalt("android");
//        setVersion(SharePreferenceUtils.getString(SharePreferenceKey.VERSION));
//        LoginModel loginModel = SharePreferenceUtils.getObject(SharePreferenceKey.LOGIN_MODEL, LoginModel.class);
//        if (loginModel == null) {
//            setUserKeyId("");
//        } else {
//            setUserKeyId(loginModel.getUserInfo().getUserId());
//        }
    }

    public String getRequestCommand() {
        return requestCommand;
    }

    public void setRequestCommand(String requestCommand) {
        this.requestCommand = requestCommand;
    }
}
